package com.ql.pojo.yk;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class YpcgExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YpcgExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCgIdIsNull() {
            addCriterion("cg_id is null");
            return (Criteria) this;
        }

        public Criteria andCgIdIsNotNull() {
            addCriterion("cg_id is not null");
            return (Criteria) this;
        }

        public Criteria andCgIdEqualTo(Integer value) {
            addCriterion("cg_id =", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdNotEqualTo(Integer value) {
            addCriterion("cg_id <>", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdGreaterThan(Integer value) {
            addCriterion("cg_id >", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cg_id >=", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdLessThan(Integer value) {
            addCriterion("cg_id <", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdLessThanOrEqualTo(Integer value) {
            addCriterion("cg_id <=", value, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdIn(List<Integer> values) {
            addCriterion("cg_id in", values, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdNotIn(List<Integer> values) {
            addCriterion("cg_id not in", values, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdBetween(Integer value1, Integer value2) {
            addCriterion("cg_id between", value1, value2, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cg_id not between", value1, value2, "cgId");
            return (Criteria) this;
        }

        public Criteria andCgNoIsNull() {
            addCriterion("cg_NO is null");
            return (Criteria) this;
        }

        public Criteria andCgNoIsNotNull() {
            addCriterion("cg_NO is not null");
            return (Criteria) this;
        }

        public Criteria andCgNoEqualTo(String value) {
            addCriterion("cg_NO =", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoNotEqualTo(String value) {
            addCriterion("cg_NO <>", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoGreaterThan(String value) {
            addCriterion("cg_NO >", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoGreaterThanOrEqualTo(String value) {
            addCriterion("cg_NO >=", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoLessThan(String value) {
            addCriterion("cg_NO <", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoLessThanOrEqualTo(String value) {
            addCriterion("cg_NO <=", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoLike(String value) {
            addCriterion("cg_NO like", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoNotLike(String value) {
            addCriterion("cg_NO not like", value, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoIn(List<String> values) {
            addCriterion("cg_NO in", values, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoNotIn(List<String> values) {
            addCriterion("cg_NO not in", values, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoBetween(String value1, String value2) {
            addCriterion("cg_NO between", value1, value2, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgNoNotBetween(String value1, String value2) {
            addCriterion("cg_NO not between", value1, value2, "cgNo");
            return (Criteria) this;
        }

        public Criteria andCgShztIsNull() {
            addCriterion("cg_shzt is null");
            return (Criteria) this;
        }

        public Criteria andCgShztIsNotNull() {
            addCriterion("cg_shzt is not null");
            return (Criteria) this;
        }

        public Criteria andCgShztEqualTo(Integer value) {
            addCriterion("cg_shzt =", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztNotEqualTo(Integer value) {
            addCriterion("cg_shzt <>", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztGreaterThan(Integer value) {
            addCriterion("cg_shzt >", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztGreaterThanOrEqualTo(Integer value) {
            addCriterion("cg_shzt >=", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztLessThan(Integer value) {
            addCriterion("cg_shzt <", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztLessThanOrEqualTo(Integer value) {
            addCriterion("cg_shzt <=", value, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztIn(List<Integer> values) {
            addCriterion("cg_shzt in", values, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztNotIn(List<Integer> values) {
            addCriterion("cg_shzt not in", values, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztBetween(Integer value1, Integer value2) {
            addCriterion("cg_shzt between", value1, value2, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShztNotBetween(Integer value1, Integer value2) {
            addCriterion("cg_shzt not between", value1, value2, "cgShzt");
            return (Criteria) this;
        }

        public Criteria andCgShbzIsNull() {
            addCriterion("cg_shbz is null");
            return (Criteria) this;
        }

        public Criteria andCgShbzIsNotNull() {
            addCriterion("cg_shbz is not null");
            return (Criteria) this;
        }

        public Criteria andCgShbzEqualTo(String value) {
            addCriterion("cg_shbz =", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzNotEqualTo(String value) {
            addCriterion("cg_shbz <>", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzGreaterThan(String value) {
            addCriterion("cg_shbz >", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzGreaterThanOrEqualTo(String value) {
            addCriterion("cg_shbz >=", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzLessThan(String value) {
            addCriterion("cg_shbz <", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzLessThanOrEqualTo(String value) {
            addCriterion("cg_shbz <=", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzLike(String value) {
            addCriterion("cg_shbz like", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzNotLike(String value) {
            addCriterion("cg_shbz not like", value, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzIn(List<String> values) {
            addCriterion("cg_shbz in", values, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzNotIn(List<String> values) {
            addCriterion("cg_shbz not in", values, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzBetween(String value1, String value2) {
            addCriterion("cg_shbz between", value1, value2, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgShbzNotBetween(String value1, String value2) {
            addCriterion("cg_shbz not between", value1, value2, "cgShbz");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcIsNull() {
            addCriterion("cg_cgdmc is null");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcIsNotNull() {
            addCriterion("cg_cgdmc is not null");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcEqualTo(String value) {
            addCriterion("cg_cgdmc =", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcNotEqualTo(String value) {
            addCriterion("cg_cgdmc <>", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcGreaterThan(String value) {
            addCriterion("cg_cgdmc >", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcGreaterThanOrEqualTo(String value) {
            addCriterion("cg_cgdmc >=", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcLessThan(String value) {
            addCriterion("cg_cgdmc <", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcLessThanOrEqualTo(String value) {
            addCriterion("cg_cgdmc <=", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcLike(String value) {
            addCriterion("cg_cgdmc like", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcNotLike(String value) {
            addCriterion("cg_cgdmc not like", value, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcIn(List<String> values) {
            addCriterion("cg_cgdmc in", values, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcNotIn(List<String> values) {
            addCriterion("cg_cgdmc not in", values, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcBetween(String value1, String value2) {
            addCriterion("cg_cgdmc between", value1, value2, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgCgdmcNotBetween(String value1, String value2) {
            addCriterion("cg_cgdmc not between", value1, value2, "cgCgdmc");
            return (Criteria) this;
        }

        public Criteria andCgKssjIsNull() {
            addCriterion("cg_kssj is null");
            return (Criteria) this;
        }

        public Criteria andCgKssjIsNotNull() {
            addCriterion("cg_kssj is not null");
            return (Criteria) this;
        }

        public Criteria andCgKssjEqualTo(Date value) {
            addCriterion("cg_kssj =", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjNotEqualTo(Date value) {
            addCriterion("cg_kssj <>", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjGreaterThan(Date value) {
            addCriterion("cg_kssj >", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjGreaterThanOrEqualTo(Date value) {
            addCriterion("cg_kssj >=", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjLessThan(Date value) {
            addCriterion("cg_kssj <", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjLessThanOrEqualTo(Date value) {
            addCriterion("cg_kssj <=", value, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjIn(List<Date> values) {
            addCriterion("cg_kssj in", values, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjNotIn(List<Date> values) {
            addCriterion("cg_kssj not in", values, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjBetween(Date value1, Date value2) {
            addCriterion("cg_kssj between", value1, value2, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgKssjNotBetween(Date value1, Date value2) {
            addCriterion("cg_kssj not between", value1, value2, "cgKssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjIsNull() {
            addCriterion("cg_jssj is null");
            return (Criteria) this;
        }

        public Criteria andCgJssjIsNotNull() {
            addCriterion("cg_jssj is not null");
            return (Criteria) this;
        }

        public Criteria andCgJssjEqualTo(Date value) {
            addCriterion("cg_jssj =", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjNotEqualTo(Date value) {
            addCriterion("cg_jssj <>", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjGreaterThan(Date value) {
            addCriterion("cg_jssj >", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjGreaterThanOrEqualTo(Date value) {
            addCriterion("cg_jssj >=", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjLessThan(Date value) {
            addCriterion("cg_jssj <", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjLessThanOrEqualTo(Date value) {
            addCriterion("cg_jssj <=", value, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjIn(List<Date> values) {
            addCriterion("cg_jssj in", values, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjNotIn(List<Date> values) {
            addCriterion("cg_jssj not in", values, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjBetween(Date value1, Date value2) {
            addCriterion("cg_jssj between", value1, value2, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgJssjNotBetween(Date value1, Date value2) {
            addCriterion("cg_jssj not between", value1, value2, "cgJssj");
            return (Criteria) this;
        }

        public Criteria andCgCgztIsNull() {
            addCriterion("cg_cgzt is null");
            return (Criteria) this;
        }

        public Criteria andCgCgztIsNotNull() {
            addCriterion("cg_cgzt is not null");
            return (Criteria) this;
        }

        public Criteria andCgCgztEqualTo(Integer value) {
            addCriterion("cg_cgzt =", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztNotEqualTo(Integer value) {
            addCriterion("cg_cgzt <>", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztGreaterThan(Integer value) {
            addCriterion("cg_cgzt >", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztGreaterThanOrEqualTo(Integer value) {
            addCriterion("cg_cgzt >=", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztLessThan(Integer value) {
            addCriterion("cg_cgzt <", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztLessThanOrEqualTo(Integer value) {
            addCriterion("cg_cgzt <=", value, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztIn(List<Integer> values) {
            addCriterion("cg_cgzt in", values, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztNotIn(List<Integer> values) {
            addCriterion("cg_cgzt not in", values, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztBetween(Integer value1, Integer value2) {
            addCriterion("cg_cgzt between", value1, value2, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgCgztNotBetween(Integer value1, Integer value2) {
            addCriterion("cg_cgzt not between", value1, value2, "cgCgzt");
            return (Criteria) this;
        }

        public Criteria andCgYpidIsNull() {
            addCriterion("cg_ypid is null");
            return (Criteria) this;
        }

        public Criteria andCgYpidIsNotNull() {
            addCriterion("cg_ypid is not null");
            return (Criteria) this;
        }

        public Criteria andCgYpidEqualTo(Integer value) {
            addCriterion("cg_ypid =", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidNotEqualTo(Integer value) {
            addCriterion("cg_ypid <>", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidGreaterThan(Integer value) {
            addCriterion("cg_ypid >", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cg_ypid >=", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidLessThan(Integer value) {
            addCriterion("cg_ypid <", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidLessThanOrEqualTo(Integer value) {
            addCriterion("cg_ypid <=", value, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidIn(List<Integer> values) {
            addCriterion("cg_ypid in", values, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidNotIn(List<Integer> values) {
            addCriterion("cg_ypid not in", values, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidBetween(Integer value1, Integer value2) {
            addCriterion("cg_ypid between", value1, value2, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgYpidNotBetween(Integer value1, Integer value2) {
            addCriterion("cg_ypid not between", value1, value2, "cgYpid");
            return (Criteria) this;
        }

        public Criteria andCgCgrIsNull() {
            addCriterion("cg_cgr is null");
            return (Criteria) this;
        }

        public Criteria andCgCgrIsNotNull() {
            addCriterion("cg_cgr is not null");
            return (Criteria) this;
        }

        public Criteria andCgCgrEqualTo(Integer value) {
            addCriterion("cg_cgr =", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrNotEqualTo(Integer value) {
            addCriterion("cg_cgr <>", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrGreaterThan(Integer value) {
            addCriterion("cg_cgr >", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrGreaterThanOrEqualTo(Integer value) {
            addCriterion("cg_cgr >=", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrLessThan(Integer value) {
            addCriterion("cg_cgr <", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrLessThanOrEqualTo(Integer value) {
            addCriterion("cg_cgr <=", value, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrIn(List<Integer> values) {
            addCriterion("cg_cgr in", values, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrNotIn(List<Integer> values) {
            addCriterion("cg_cgr not in", values, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrBetween(Integer value1, Integer value2) {
            addCriterion("cg_cgr between", value1, value2, "cgCgr");
            return (Criteria) this;
        }

        public Criteria andCgCgrNotBetween(Integer value1, Integer value2) {
            addCriterion("cg_cgr not between", value1, value2, "cgCgr");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}